﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DptScoreList.ascx.cs" Inherits="ScoreList" %>
<table>
<tr><td>
<asp:Label ID="Label_Title" runat="server"></asp:Label>&nbsp;---成员评分<br />
<br />
<asp:GridView ID="GridView_DptStaffs" runat="server" AllowPaging="True" 
    DataSourceID="ObjectDataSource_Staff"  AutoGenerateColumns="False" 
    OnDataBound="GridView_DptStaffs_DataBound" 
    OnRowDataBound="GridView_DptStaffs_RowDataBound" 
    onrowupdating="GridView_DptStaffs_RowUpdating">
    <Columns>
        <asp:BoundField DataField="SerialNumber" HeaderText="考核编号" ReadOnly="True" />
        <asp:BoundField DataField="Name" HeaderText="姓名" ReadOnly="True" />
        <asp:BoundField DataField="SelfScore" HeaderText="自评分" ReadOnly="True" />
        <asp:BoundField DataField="ScoreByLeader" HeaderText="主管评分" />
        <asp:CommandField ShowEditButton="True" />
    </Columns>
    <FooterStyle CssClass="FooterStyle" />
    <RowStyle CssClass="RowStyle" />
    <EmptyDataRowStyle CssClass="EmptyRowStyle" />
    <PagerStyle CssClass="PagerStyle" />
    <SelectedRowStyle CssClass="SelectedRowStyle" />
    <HeaderStyle CssClass="HeaderStyle" />
    <EditRowStyle CssClass="EditRowStyle" />
    <AlternatingRowStyle CssClass="AltRowStyle" />
</asp:GridView>
<br />
<asp:ObjectDataSource ID="ObjectDataSource_Staff" runat="server" TypeName="StaffDB" OnInserting="ObjectDataSource_Webservice_Inserting" OnUpdating="ObjectDataSource_Webservice_Updating" MaximumRowsParameterName="" SelectMethod="GetStaffs" StartRowIndexParameterName="" DataObjectTypeName="StaffDetail" UpdateMethod="UpdateLeaderScoreBySN">
    <SelectParameters>
        <asp:Parameter Name="DepartmentNum" />
    </SelectParameters>
</asp:ObjectDataSource>
&nbsp;
</td></tr>
</table>